# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-nikola
_pyname=Nikola
pkgver=8.1.1
pkgrel=0
pkgdesc="Modular, fast, simple, static python website generator"
url="https://getnikola.com"
# armv7, armhf, s390x, x86: py3-piexif
# aarch64: py3-inotify
arch="noarch !armv7 !armhf !s390x !x86 !aarch64"
license="MIT"
depends="py3-babel py3-blinker py3-doit py3-dateutil py3-docutils py3-logbook
	py3-lxml py3-mako py3-markdown py3-natsort py3-piexif py3-pillow
	py3-pygments py3-pyphen py3-pyrss2gen py3-requests py3-setuptools
	py3-unidecode py3-yapsy"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/N/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver

replaces="py-nikola" # Backwards compatibility
provides="py-nikola=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="a833cb7687077266a20f7043f99b03391f350b48ceea71250158e760b0e44b603de1d6e398a03ec848483775501ad248b6ac45a23ceb250d120a63f110d482b5  Nikola-8.1.1.tar.gz"
